package cn.jaye.fabric.common.model;

import java.io.Serializable;
import java.util.Date;

public abstract class BaseModel implements Serializable {
    private static final long serialVersionUID = 13434235L;
    public int id;
    public Date createTime;
    public Date updateTime;
    public String createBy;
    public String updateBy;
    public boolean deleteFlag;

    public int getId() {
        return id;
    }

    public boolean isDeleteFlag() {
        return deleteFlag;
    }

    public BaseModel() {
        this.createTime = new Date();
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public boolean getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime() {
        this.createTime = new Date();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
}